//
//  NearbyMotionView.m
//  Finance
//
//  Created by cheng xiang on 13-7-4.
//  Copyright (c) 2013年 cheng xiang. All rights reserved.
//

#import "NearbyMotionView.h"
#import <QuartzCore/QuartzCore.h>

@implementation NearbyMotionView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
       // [self setBackgroundColor:[UIColor whiteColor]];
        
        UIImageView* bk = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height)];
        bk.image = [UIImage imageNamed:@"bk.png"];
        
        UIImageView* icon = [[UIImageView alloc] initWithFrame:CGRectMake(95, 100, 125, 200)];
        icon.image = [UIImage imageNamed:@"yy.png"];
        [bk addSubview:icon];
        
        UIImageView* bottom = [[UIImageView alloc] initWithFrame:CGRectMake(0, 330, self.bounds.size.width, 200)];
        bottom.image = [UIImage imageNamed:@"ybottom.png"];
        [bk addSubview:bottom];
        
        UIImageView* bottomright = [[UIImageView alloc] initWithFrame:CGRectMake(self.bounds.size.width - 40, self.bounds.size.height-110, 35, 35)];
        bottomright.image = [UIImage imageNamed:@"yright.png"];
        [bk addSubview:bottomright];
        
        UILabel* _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 20, 310, 35)];
        [_titleLabel setBackgroundColor:[UIColor clearColor]];
        [_titleLabel setText:@"摇到您想要的理财产品"];
        [_titleLabel setTextAlignment:NSTextAlignmentCenter];
        [_titleLabel setTextColor:[UIColor whiteColor]];
        [_titleLabel setFont:[UIFont systemFontOfSize:15]];
        [bottom addSubview:_titleLabel];
        
        [self addSubview:bk];
    }
    return self;
}

- (BOOL)canBecomeFirstResponder
{
    return NO;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
